starting with the arduino script and some changes in the web