In this tutorial, we will learn how to interface digital sensors with Arduino . A sensor is a device which detects or measures a physical property and records, indicates or otherwise responds to it. Digital sensors give us output in the form of HIGH or LOW signal. When it detects a phenomenon it gives a HIGH output else a LOW output signal. Few examples of digital sensors are- IR Sensors, Digital Sound Sensors, Digital Temperature Sensors etc. We will interface an Infrared Sensor module. Working on an IR sensor. It basically works as an obstacle detector. Let us learn how to interface an IR (infrared) sensor. Components required: IR sensor module 1No. Arduino UNO 1No Connecting wires. Breadboard. Follow the below video for circuit connection reference. After making the circuit connections dump the code given below. int irpin = 2; int ledPin = 13; in