Arduino code for electronics interfacing.