Update convert.py

Added sensor data conversion.
Changed way hex is converted to be uniform and more efficient.
Removed signedhex function as no longer needed.