Question: Turn in a cleanly formatted version of the code, and a sample print-out of at least 10 readings. HINT: Use the Auto Format function in

 Turn in a cleanly formatted version of the code, and a

Turn in a cleanly formatted version of the code, and a sample print-out of at least 10 readings. HINT: Use the "Auto Format" function in the "Tools" menu Write an Arduino program to measure the output of the salinity sensor. Use a photoresistor instead of the salinity sensor to debug the program. Your program should perform the following steps in a continuously repeating loop: Turn on the sensor by setting the digital output pin HIGH. b. Wait 100 milliseconds (see comment-about-not using delay, bclow) 1. a. Make n readings of the sensor, where n is a variable. For testing, use n =15. c. d. Turn off the sensor e. Average the readings f. Convert the average value to voltage g. Print the time and voltage value to the Serial Monitor. h. Wait 100 milliseconds

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!