[HAO-Tracker-Primary] updated main.cpp wrt to AnalogSensors API
refactoring

- main.cpp has been updated in order to take into account changes in
analog sensors API