The module requires five connections to your Arduino: two for power, three for data.
The example code assumes the following connections:
V (VCC) connected to Arduino 5V.
G (GND) connected to Arduino GND.
D (Data) connected to Arduino digital pin D2.
C (Clock) connected to Arduino digital pin D3.
A (Acquire) connected to Arduino digital pin D4.
Driver Library Installation
The driver library needs to be installed to allow your Arduino to communicate with the IRTemp module.
1. Create a directory called "libraries" inside your Arduino sketchbook directory if it doesn't already exist.
2. Download the latest version of the library: IRTemp.zip
3. Unzip the library so you have a directory called "IRTemp". Put that directory inside your "libraries" directory.
4. Restart the Arduino IDE so it will recognise the new library.
The library comes with an example sketch included to get you started quickly. After you have installed the library as described above, launch the Arduino IDE and open in the menu File -> Examples -> IRTemp -> readTemperature.
Connect your Arduino using a USB cable as usual, make sure you have the correct board type and serial port selected, and click the "Upload" button in the IDE.
Once the sketch has been uploaded, click the "Serial Monitor" button in the IDE. Check that the baud rate is set to 38,400bps to match the setting in the sketch.
The current temperature reading will then be reported once per second in the serial monitor.