Added warning message for incorrect pwm value