Improved stability and calculations

Addes support for checking if the device is present, to prevent
blocking.

Improved reading measurements to prevent blocking.

Improved calculations to correctly enable signed conversion.