4. (10 pts) Write a program that will:
(a) Monitor Analog pin A0. [By ‘monitor’ it ismeant that the program should use analogRead() to capture thevoltage level. If you are unfamiliar with the analogRead()function, check the Arduino Reference. The analogRead() functionwill return a value between 0 and 1023 corresponding to a voltagelevel between 0 and 5 V.] If the voltage level exceeds 2.5 V, theprogram will:
(b) Turn on the motor through the interface youdesigned in Problem 3 for two seconds. After the two seconds, themotor should be turned off and the system will:
(c) Go back to monitoring the voltage level onpin
PayPal Gateway not configured
PayPal Gateway not configured