Sensor Map Function In Python