Skip to content
Advertisement

Tag: i2c

Python code to send data from I2C sensor to a local SQL database

I am working on a system of I2C sensors connected together and communicating to a raspberry pi4B. With the code below I am able to save the measurements in a excel file. I would like to store them in a table inside a sql database that I have created locally on my laptop. What should I change in this code?

Advertisement