Sounds like something that should work. If the device drives the LED with 5V (and include a resistor) you better measure over the resistor and the LED.
You could then use a "simpler" digitalRead(PIN) instead resulting in HIGH or LOW.
Sounds like something that should work. If the device drives the LED with 5V (and include a resistor) you better measure over the resistor and the LED.
You could then use a "simpler" digitalRead(PIN) instead resulting in HIGH or LOW.