Sensors - Add thread to the module

the sensors module now works with a thread to check value every 50ms.