Question: PYTHON 3: There is an embedded system that has temperature and humidity sensors (simulated). When simulating the sensors, they write the data received in files.
PYTHON 3:
There is an embedded system that has temperature and humidity sensors (simulated). When simulating the sensors, they write the data received in files. Model the sensors in a Python program defining the following classes: a. Class "Sensor": receives the sensor number from the manufacturer. It has a read_file method that Lets you read a float value from a file and display. b. There is another method "assign_path", the same one that receives the path to the file. It has a method "give path showing the address of the file " c. Class "SensorTemperatura": Inherited from the class "Sensor". It has a method "give_value" that returns the temperature in a float truncating the negative part (if it is less than zero it returns 0) and saves it to a file. d. Class "SensorHumdad": Inherited from the class "Sensor". It has a method "give_value ()" that returns the moisture read and save it to a file. and. Make an application that simulates data collection from time to time, and displays the information provided by the sensors in graphs.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
