first implementation of the sensor law !
absolutely NOT optimized !