adding arduino sensor code