Yes I too am having the same issue although I must say that it works some time and some time it does not .So it is not consistent and I think it is a manufacturing defect with most of HTC One phones offering this feature.
Howver you can try calibrating your phone once using the G -Sensor...