Given the output function void output (int LEDRedLevelint LEDYellow Level, int FanSpeed Level, int DoorlockLevel). Develop the
Question:
Given the output function void output (int LEDRedLevelint LEDYellow Level, int FanSpeed Level, int DoorlockLevel). Develop the code for a state called Monitoring. While in the state the red LED is oft and the yellow LED is off. The fun is running at 85% duty cycle and the Doorlock is on. The user leaves from the state Monitoring to the state Charging after 5s or if the temperature is greater than or equal to 30 degrees. 105 Marks Line Code Line Number 1 2 3 4 5 6 7 Choose from the following options: Case Idle Output(0,0,255,1); Output(1,0,50,0) Output(0,0,216,0.1) Serial println(Temperature) Serial printin(LED) current = Charging previous Millis = millis():} current = Charging currentMillis = millis():) current=Idle, millis() = previousMillis:) millis() = current Millis: millis() = 5000:3 if(temp > 30) case Monitoring case Charging: pinMode(Temperature, 3) pinMode (doorl.ock, 5) pinMode(LED,6) digitalRead(doorlock) analogWrite(Motor, 60) analogWrite(LED, HIGH) Output(0,0,216,1) if(delayG(5000) if(delay(5000) if(delayG(50000)>=>= 30) end Question 2 (0.5 points) Given that the PoM expression for F(W.X,Y,Z) = MO.M1. M4. M10 M11. M14. M15. What is the value of F when W=0, X=1, Y=1, and Z=0 ? 1 Cannot be determined