What Does Code B1790 Mean?
DTC B1790 signifies an Autolamp Sensor Input Circuit Failure. This code is typically set by the Body Control Module (BCM), Headlamp Control Module (HCM), or a dedicated Headlamp Control Logic (HCL) module when it detects an electrical anomaly within the circuit of the ambient light sensor, often referred to as the autolamp sensor or sunload sensor. This sensor is crucial for automatically controlling exterior lighting (headlights, daytime running lights) and sometimes interior dashboard illumination based on ambient light conditions. The module monitors the voltage or digital signal provided by the sensor, expecting it to fall within a predefined operational range. If the module detects an input signal that is either excessively high (indicating an open circuit or short to voltage), excessively low (indicating a short to ground), or completely absent, it interprets this as a circuit fault and stores the B1790 code. This directly impacts the automatic operation of the vehicle’s lighting system.
Common Symptoms
- Automatic Headlights Malfunction: Headlights may not turn on at dusk or off at dawn, remaining in a fixed state regardless of ambient light.
- Headlights On Continuously: The headlights may stay on even during bright daylight hours.
- Headlights Off During Darkness: The headlights may fail to activate in low light or dark conditions, requiring manual operation.
- Intermittent Headlight Operation: Headlights may flicker or turn on/off erratically.
- Dashboard Illumination Issues: In some vehicles, the autolamp sensor also influences dashboard and interior lighting dimming, which may malfunction.
- “Check Auto Lamps” Warning Message: A warning indicator or message may appear on the instrument cluster.
What Causes the Code B1790?
- Faulty Autolamp Sensor: The sensor itself may have failed internally, providing incorrect or no signal output.
- Damaged Wiring Harness: An open circuit, short to ground, or short to voltage within the wiring connecting the autolamp sensor to the control module (BCM/HCM/HCL).
- Corroded or Loose Electrical Connectors: Poor connection at the autolamp sensor or at the corresponding control module due to corrosion, bent pins, or inadequate terminal tension.
- Physical Obstruction or Damage to Sensor: Dirt, debris, window tinting, or physical damage to the sensor’s lens preventing it from accurately reading ambient light.
- Faulty Body Control Module (BCM) or Headlamp Control Module (HCM): While less common, an internal fault within the controlling module itself can lead to misinterpretation of the sensor’s input or failure to provide proper power/ground to the sensor.
How to Diagnose and Troubleshoot
Diagnosis of B1790 requires a methodical approach using a digital multimeter (DMM) and an advanced OBD-II scan tool capable of viewing live data and performing functional tests.
- Visual Inspection: Begin by visually inspecting the autolamp sensor (typically located on the dashboard, near the windshield, or integrated into the rearview mirror housing) for any physical damage, dirt, or obstructions. Examine the wiring harness leading to the sensor for any signs of chafing, cuts, pinches, or corrosion. Check the sensor’s electrical connector for proper seating, bent pins, or corrosion.
- Scan Tool Data Analysis: Connect an advanced scan tool and access the Body Control Module (BCM) or Headlamp Control Module (HCM) data list. Look for a parameter related to the ambient light sensor input, which may be displayed as a voltage, a percentage, or a raw light intensity reading. Observe this live data while varying the light conditions around the sensor (e.g., covering it with your hand, shining a flashlight on it). The value should change proportionally. If the value is stuck, erratic, or out of range, it strongly suggests a sensor or circuit issue.
- Circuit Integrity Testing (with DMM):
- Disconnect the Autolamp Sensor: With the ignition OFF, disconnect the electrical connector from the autolamp sensor.
- Check for Reference Voltage: With the ignition ON, use a DMM to test for reference voltage (typically 5V or 12V, consult vehicle-specific wiring diagrams) at the sensor connector terminals coming from the BCM/HCM. This verifies the module is supplying power to the sensor.
- Check for Ground: Test for a good ground connection at the sensor connector using the DMM.
- Check Signal Circuit Continuity and Shorts: Disconnect the BCM/HCM connector (if accessible and safe to do so) and the autolamp sensor connector. Test the signal wire for continuity between the two connectors. The resistance should be very low (typically less than 0.5 ohms). Then, check the signal wire for shorts to ground and shorts to voltage by probing between the signal wire terminal and a known good chassis ground, and between the signal wire and any power circuits. Resistance should be infinite (OL – Open Line) for shorts.
- Autolamp Sensor Component Test (if applicable): Some older autolamp sensors are simple photoresistors whose resistance changes with light. You can test these by measuring resistance across its terminals while varying light. Modern sensors are often more complex, integrated circuits that output a voltage or digital signal, making direct component testing difficult without specialized equipment. In such cases, if power, ground, and wiring are confirmed good, the sensor itself is often the culprit.
Recommended Repairs and Solutions
Once the root cause of B1790 has been accurately identified through diagnosis, the following repairs are typically recommended:
- Repair or Replace Damaged Wiring: If the diagnostic steps indicate an open, short, or high resistance in the wiring harness, perform precise repairs to the affected section of the wire, or replace the entire harness segment if damage is extensive. Ensure proper soldering, heat shrinking, and routing of new wiring.
- Clean or Replace Corroded Connectors: If corrosion or poor terminal tension is found at the sensor or module connector, clean the terminals thoroughly using electrical contact cleaner and a small brush. If terminals are severely damaged, repin the connector or replace the entire connector housing.
- Replace the Autolamp Sensor: If the sensor itself is determined to be faulty (e.g., no output, incorrect output, or physical damage), replace it with a new, OEM-quality part. Ensure the new sensor is correctly installed and its lens is clean and unobstructed.
- Remove Obstructions: If the sensor’s function was impaired by dirt, debris, or excessive window tinting, clean the sensor lens or remove the obstruction.
- Module Replacement (Last Resort): Only consider replacing the Body Control Module (BCM) or Headlamp Control Module (HCM) if all other components and wiring have been thoroughly tested and confirmed to be functioning correctly, as module replacement is often expensive and may require programming or calibration by a dealership or specialist.
Mechanic’s Tip: After any repair, clear the DTCs using your scan tool. Then, perform a functional test of the autolamp system by simulating different light conditions (e.g., driving into a dark garage, covering and uncovering the sensor) to confirm that the automatic headlights now operate correctly and the B1790 code does not return. Always consult the vehicle’s factory service manual for specific wiring diagrams, sensor specifications, and diagnostic procedures.

