Uses new pwm methods from analog_sensor driver to calculate the pwm output value.