Improved 1-wire sensor implementation