[Unit] Description=Arduino Serial Logger (Exploring Uncertainties) # Start after the system has reached multi-user mode and USB devices are ready. After=multi-user.target [Service] Type=simple # Change 'pi' to your actual Raspberry Pi username if different. User=pi # Absolute path to the script — update this to match where you cloned the repo. ExecStart=/usr/bin/python3 /home/pi/ExploringUncertanties/dataLogging/log_serial.py # Restart the service automatically if it crashes or if the Pi reboots. Restart=always RestartSec=5 [Install] WantedBy=multi-user.target