Question: Write a program that receives three inputs: a button, Sensor 1 and Sensor 2. Sensor 1 has a range of about 40 to 70 while

Write a program that receives three inputs: a button, Sensor 1 and Sensor 2. Sensor 1 has a range of about 40 to 70 while Sensor 2 has a range around 25 to 200. If the button is pressed a PWM should be outputted to an LED based on sensor 1. Else make a PWM output to the same LED based on sensor 2. Remember to have the PWM go between 0 and 255
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
