Rewrite to support sensors

Rewrote to support temp and voltage sensors.