Fix sensor type values for threshold and generic sensors.