TP4056 Open Drain detection

If V+ is lower than 5V then all you need to do is to connect pin 7 to an Arduino input to read it.