Answer:
The program in Python is as follows:
myfile = open("sensor.dat", "r")
for line in myfile:
print(line)
myfile.close()
Step-by-step explanation:
This opens the file for read operation
myfile = open("sensor.dat", "r")
This iterates through the file
for line in myfile:
Print record on each row
print(line)
Close file
myfile.close()