Updated Arduino sample