relay_pwm sketch mostly works