As @luwar says - the sensor itself will always wake Espruino up.
I was vaguely considering adding code to make it only run JS if the reading changed by a certain amount, but realistically the power saving from doing that isn't that great.
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.
As @luwar says - the sensor itself will always wake Espruino up.
I was vaguely considering adding code to make it only run JS if the reading changed by a certain amount, but realistically the power saving from doing that isn't that great.