The connections for the IR sensor with the Arduino are as follows: Connect the negative wire on the IR sensor to GND on the Arduino. Connect the middle of the IR sensor which is the VCC to 5V on the Arduino. Connect the signal pin on the IR sensor to pin 8 on the Arduino.
code syntax:
if (expression)
{
block of statements;
}
else
{
block of statements;
}
Watch this video
Comments
Please log in or sign up to comment.