Please can you post up your finished code? It's possible that if you're still calling wifi.disconnect() (my previous suggestion), it is undoing the work of A13.read();...
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Please can you post up your finished code? It's possible that if you're still calling
wifi.disconnect()
(my previous suggestion), it is undoing the work ofA13.read();
...