Arduino code WORKING (no timing or battery)