switched from arduino to raspberry pi