Made alot of changes. Refactor most of the code. need to check specially the sensor changes and uploading files