I would like to design a NodeMCU board to detect when the switch is closed and the switch circuit is live (i.e. 5V) without interfering with the signal being relayed to the origin switch device.
Both devices are powered by the mains 230V AC (NodeMCU via USB cable and transformer, switch device has its own 5V transformer and motherboard).
I have included a diagram of what I would like to do.
All the posts I have seen so far seem to suggest reading the voltage on the analogue pin A0, but they all seem to share a common ground/power supply which my devices do not.
Many thanks