Thermal Camera application and peace of hardware for iPhone and Androids have been used to hack ATM pin code.
The infrared camera or thermal imaging camera using Infrared radiations to form an image.
The scientific research Heat of the Moment: Characterizing the Efficacy of Thermal Camera-Based Attacks shows different scenarios of iPhone and Android ATM PIN code hack.
Thermal Camera application for Android and iPhone are already on Apps stores and thermal imaging camera that attaches to the Apple iPhone 5 and 5S easy to buy from internet.
Following video demonstrate the iPhone ATM PIN code hack and how to prevent.