Question: Write a Python code to solve the following problem: In an embedded system, two streams of sensor readings come from two temperature sensors installed in

Write a Python code to solve the following problem:

In an embedded system, two streams of sensor readings come from two temperature sensors installed in two different locations (backyard and front yard). Use random numbers to simulate the readings.

Print a report on the screen that shows the two readings from the two locations and an alert when the readings are different by more than 5 degrees. This could be a sign one of the sensors is faulty. What percentage of time does this fault event get detected must also be shown.

The report must also show the average of the two locations.

To reduce the error from each location, use a 5-tap averaging window on each location. We did 3-tap in the videos for a single location. Extend it to 5-tap on two different locations.

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!