Arduino sample code