added the arduino sketch for this solution