The green flashing should stop after a few seconds of the sensor not being near anything. If it doesn't (and your firmware is up to date) then maybe the sensor is dirty or you didn't remove the protective film from it?
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.
The green flashing should stop after a few seconds of the sensor not being near anything. If it doesn't (and your firmware is up to date) then maybe the sensor is dirty or you didn't remove the protective film from it?