Switched from 'listen' to 'rb-inotify' for temperature sensor, and fixed tests