Proximity sensors are common components in modern electronic devices, particularly smartphones, tablets, and some laptops. They detect the presence of nearby objects without physical contact, primarily to save power and prevent accidental screen touches. A classic example is your phone screen turning off when you hold it to your ear during a call. However, there are situations where you might want to disable this feature. Perhaps the sensor is malfunctioning, causing the screen to go black prematurely, or you need it off for a specific task like using the phone in a cradle. It's important to understand that completely turning off a hardware proximity sensor is often not a straightforward user setting, as it's integrated into the system for core functionality. However, you can effectively disable its function through software settings or workarounds. Here is a practical guide.
First, check your device's standard settings. The most common and legitimate method is within the phone's call settings. Open your Phone app, tap the menu (often three dots), and select "Settings" or "Call settings." Look for an option labeled "Turn off screen during calls," "Proximity sensor," or something similar. Toggling this off will prevent the sensor from deactivating the screen during calls. This is the recommended first step for solving issues like the screen staying off after a call.
If the problem persists or you want to disable it more broadly, the issue might be app-specific. Some applications, like WhatsApp or Telegram, have their own proximity sensor settings for voice messages or calls. Open the problematic app, navigate to its Settings > Notifications or Calls, and look for a proximity sensor option to disable.

For persistent malfunctions, the sensor might be obstructed. Inspect the area near your front-facing camera. A dirty screen protector, case, or accumulated dust can block the sensor. Gently clean the area with a soft, dry cloth. This simple fix resolves many unintended proximity sensor activations.
On Android devices, you can use diagnostic codes to test the sensor. Open your dialer and enter#0# to access a hidden service menu (availability varies by manufacturer). If the menu opens, look for a "Sensor" test. This allows you to see if the sensor is working correctly. However, this menu rarely offers a permanent disable option.
For advanced users, if software settings don't provide a solution and the sensor is faulty, more technical steps exist. One method involves using developer options. Enable Developer Options by going to Settings > About Phone and tapping "Build Number" seven times. Then, in Developer Options, search for "sensor" or "disable sensors." Some devices have a "Disable sensors" toggle that turns off all sensors, including the proximity sensor. Use this with caution, as it may affect other functionalities.
Another advanced route is using third-party apps from the Google Play Store, such as "Proximity Sensor Reset/Repair" or "Sensor Disabler." These apps often require root access for full functionality. Granting root access voids warranties and carries security risks, so this is only advisable for experienced users dealing with a confirmed hardware fault.
For iPhones, Apple provides very limited user control over the proximity sensor. There is no system setting to turn it off. Your primary recourse is to ensure the sensor area (the top bezel) is clean. If the sensor is consistently malfunctioning—for instance, the screen doesn't wake up after a call—it could indicate a hardware failure. In this case, contacting Apple Support or visiting an authorized service provider is the recommended course of action.
In summary, while you cannot typically "turn off" the physical proximity sensor, you can disable its interfering functions. Start with the in-call settings and app-specific settings. Clean the sensor area thoroughly. For deeper control, explore developer options cautiously. Consider professional repair if a hardware fault is suspected, as attempting to physically disable the sensor is not recommended and can permanently damage your device. The goal is to manage the sensor's behavior to suit your needs without compromising the device's integrity.