1Sensor is derived from code written by Kevin Steele and used with permission.