first debug code for sensor