Skip Navigation

Mh Sensor Series Flying Fish Ir Sensor Datasheet Fixed 【FULL】

if (sensorState == LOW) { // Object is close digitalWrite(ledPin, HIGH); Serial.println("Object Detected!"); } else { digitalWrite(ledPin, LOW); Serial.println("Clear"); } delay(100); }

Today, we are going to fix that. Here is the actual working datasheet for the MH Flying Fish IR Sensor—no confusion included.

You don't need a "fixed" datasheet; you just needed the correct one. The MH Flying Fish is a TCRT5000 reflective sensor paired with an LM393 comparator. Treat it as a digital switch that triggers when something gets within 2cm. Mh Sensor Series Flying Fish Ir Sensor Datasheet Fixed

void loop() { int sensorState = digitalRead(sensorPin);

If your sensor isn't working like the "broken" datasheet said, here is the troubleshooting guide: if (sensorState == LOW) { // Object is

Stop reading the fake datasheet and run this code instead:

// MH Flying Fish IR Sensor Test int sensorPin = 2; // Digital Pin 2 int ledPin = 13; // Built-in LED void setup() { pinMode(sensorPin, INPUT); pinMode(ledPin, OUTPUT); Serial.begin(9600); } The MH Flying Fish is a TCRT5000 reflective

But there is one annoying problem:

Subscribe for Updates