Sensor Testing code updated