Fixed issue with some sensors due to wrong integer type.