pid code first commit
--stopped due to battery problem