^hot^ — Fc 51 Ir Sensor Datasheet Hot

Double-check your jumper wires against the labels printed directly on the FC-51 PCB: must go to the 5V or 3.3V pin on your Arduino. GND must go to the GND pin on your Arduino.

If the object detection LED is turned on, rotate the onboard potentiometer using a precision screwdriver until the indicator turns off. fc 51 ir sensor datasheet hot

void setup() pinMode(sensorPin, INPUT); // Set sensor pin as input pinMode(ledPin, OUTPUT); // Set LED pin as output Serial.begin(9600); // Initialize serial communication Double-check your jumper wires against the labels printed