import json
with oepn("sensor_data.json", "w") as f:
    f.write(json.dumps(sensor_data))
