Project 10
5/3/2020 Project 10
https://murraystate.instructure.com/courses/1359835/assignments/5892388?module_item_id=13755093 1/2
Example Code:
Below is a portion of the code that would be used in the program described above. It would be in the function void loop()
if (sensorReading>920)
{
//display white
}
else if(sensorReading>900)
{
//display yellow
}
else if(sensorReading>850)
{
//display red
}
else if(sensorReading>800)
{
//display purple
}
else if(sensorReading>750)
{
//display blue
}
else if(sensorReading>600)
{
//display teal
}
else if(sensorReading>450)
{
//display green
}
else
{
5/3/2020 Project 10
https://murraystate.instructure.com/courses/1359835/assignments/5892388?module_item_id=13755093 2/2
//off
}