Comparator circuit to detect working alternator
Use a zener diode to decrease the battery voltage so it comes in range of the inputs of your (rail to rail) opamp. Then compare that value with an (adjustable) reference voltage







simulate this circuit &ndash; Schematic created using CircuitLab