Raspberry Pi - Data Logging and Databases
Identify the error in this Python code snippet for inserting sensor data into SQLite on Raspberry Pi:
import sqlite3
conn = sqlite3.connect('data.db')
cursor = conn.cursor()
cursor.execute('INSERT INTO readings (value) VALUES 30')
conn.commit()
conn.close()