Hi,
Here I modified the real-time readings function to use time class for the reading duration in seconds.
I used the yield function within it to make a generator function.
By iterating the function calling process, we can get real-time readings.
I made the print commands as comments from my previous work; you can get them again if you wish.
Hi, Here I modified the real-time readings function to use time class for the reading duration in seconds. I used the yield function within it to make a generator function. By iterating the function calling process, we can get real-time readings. I made the print commands as comments from my previous work; you can get them again if you wish.