V0.5b r2

Small fix on the normalize sensor function