Old concept, working but very buggy

After some seconds the movingSensor lose it's range and never get back
to a normal state. (don't know why)