sensor.py: Fleshed out methods and exceptions