Learn how to use or interface infrared sensors with Arduino.This is a beginner's guide to IR sensors.
The infrared sensor or infrared sensor has two main parts.Infrared transmitter and infrared receiver. The job of the infrared transmitter or infrared transmitter is to transmit infrared waves, while the job of the infrared receiver is to receive these infrared waves.The infrared receiver sends digital data continuously to the Vout pin of the sensor in the form of 0 or 1.
If there is an object in front of the infrared sensor, the infrared wave emitted by the infrared transmitter will be reflected from the object and received by the infrared receiver. In this case, the infrared sensor gives 0.However, if there is no object in front of the infrared sensor, the infrared waves emitted by the infrared transmitter will not be received by the infrared receiver.In this case, the infrared sensor gives 1.
Pinout of an IR sensor:
2) 5 volt