a) Draw a flowchart to carry out the following operation. Amicrocontroller has digital inputs from two motion sensors. Theinputs are 0 for no motion and 1 for motion detected. It also hasan output that powers up a security light which needs to be 0 foroff and 1 for on. If either of the sensors detects motion the lightshould come on, and remain on for 2 minutes. After that, the lightis turned off and the process begins again.
b) Write some C code which implements this flowchart for anArduino Due board. Write only the loop() function provided byArduino, and assume that the
PayPal Gateway not configured
PayPal Gateway not configured