Modify a bit the way the thread is working in the LegacySensor - I did'nt like that this thread is never stopped ;)