I'm trying to read the value of a charge status pin (TP4056, charge done, open drain) with LED are connected. LED anode is on the TP4056 VDD rail (USB, 5V), as I don't want the LED to draw anything when USB is not connected. However, I'm reading 2.56V when charging (status is low, LED lit) and 2.01V when charge is done (stauts floats, LED dark).
How do I solve it so MCU can read a proper low, without affecting the LEDs?