Hmm - It could be that the disk errors are causing Espruino to leak memory (however looking at the code I can't see how), or it could be that Espruino is running low on memory and that's causing the errors?
Could print the value of process.memory().usage each time you read the sensors? It might help to see if the memory usage is rising?
Any chance you could strip your code down (removing the DHT read and LCD write) and see if it still happens?
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.
Hmm - It could be that the disk errors are causing Espruino to leak memory (however looking at the code I can't see how), or it could be that Espruino is running low on memory and that's causing the errors?
Could print the value of
process.memory().usage
each time you read the sensors? It might help to see if the memory usage is rising?Any chance you could strip your code down (removing the DHT read and LCD write) and see if it still happens?