Added option to invert values for devices like the S3