Fc 51 Ir Sensor Datasheet [Edge FRESH]

int sensorPin = 2; int ledPin = 13; int sensorState = 0;

The is a popular infrared (IR) obstacle avoidance sensor module commonly used in Arduino and robotics projects . It uses an IR transmitter (LED) and receiver (phototransistor) to detect objects within a specific range by measuring the reflection of infrared light. Technical Specifications Fc 51 Ir Sensor Datasheet

2cm to 30cm (adjustable via onboard potentiometer). Detection Angle: ~35°. int sensorPin = 2; int ledPin = 13;

delay(50);

void setup() pinMode(sensorPin, INPUT); pinMode(ledPin, OUTPUT); Serial.begin(9600); int sensorPin = 2