Open Settings and select Phone > Sensor settings.

Select from the following: