I’m using a raspberry pi 4 to collect sensor data by a python script and write it to a log file by using a Mcp3008. The code is like:
While i<1000: val=m