Update sensor.py

added maxValue