These are few sample programs that I teach to my students in Arduino tutorials