Wear sensors

PR to merge in the sensor code.