Severity Medium
B1791

B1791: Auto Headlight Sensor Circuit Open

📅 Last reviewed: July 2026
What does the B1791 code mean?

The B1791 code indicates that the Body Control Module (BCM/GEM) has detected an open circuit in the input signal from the automatic headlight sensor (ambient light sensor). This sensor, typically located on the dashboard near the windshield, sends a variable voltage signal to the BCM based on ambient light levels. An open circuit prevents the BCM from accurately determining outside light conditions, disabling the automatic headlight function.

Medium
Severity
Variable
Typical Cost
Medium
Frequency

1. Commonly Affected Makes

FordLincolnMercury

2. Most Common Causes

3. Symptoms You Will Notice

4. Step-by-Step Diagnosis

1

Scan for codes and verify B1791 is present

2

Visually inspect the ambient light sensor and its connector for damage, corrosion, or loose terminals

3

Test the sensor's signal circuit for continuity and proper voltage reference

4

If wiring and sensor check out, test the BCM input pin for proper operation

5. Frequently Asked Questions

Is it safe to drive?

Yes, it is generally safe to drive, but automatic headlights will not function. You can still operate headlights manually. The issue is moderate and should be repaired soon for convenience and safety.

How much does it cost to fix?

Repair costs typically range from $100 to $300, depending on whether the sensor or wiring needs replacement. BCM replacement is more expensive, often $500-$1000.

6. Related Codes

Need an OBD2 Scanner for the B1791? Compare the best scanners compatible with all vehicles
🛒 View OBD2 Scanners →