A headlamp assembly comprising: a housing for coupling the headlamp assembly to a vehicle, the housing including a reflector (1120, 1121); a planar heat sink structure having a first surface and a second surface; a main circuit board supported by the heat sink; a first light emitting diode assembly supported by the first surface of the heat sink structure and a second light emitting diode assembly supported by the second surface of the heat sink structure, each of the first and second light emitting diode assemblies being electrically connected to the main circuit board; a lens affixed to the housing having an inner surface and an outer surface; a wire heating element circuit board affixed to said lens; a wire heating element embedded within the inner surface of the lens, and electrically coupled to the wire heating element circuit board; an encapsulation layer disposed over the wire heating element; characterized in that the assembly further comprises a thermistor for providing a resistance, said thermistor being placed in the lens between said inner surface and said outer surface of said lens, thereby minimizing the thermal impedance between the thermistor and outer surface of the lens and maximizing the resistance from the thermistor to an inside of the lamp, said thermistor being electrically coupled to said wire heating element circuit board; and a micro-controller for determining the temperature of the outer surface of the lens based on the resistance provided by the thermistor, said wire heating element being activated in response to the temperature of the outer surface of the lens being at or below a set activation temperature above but near zero degrees Celsius so as to prevent the formation of snow or ice on said outer surface of said lens. a housing for coupling the headlamp assembly to a vehicle, the housing including a reflector (1120, 1121); a planar heat sink structure having a first surface and a second surface; a main circuit board supported by the heat sink; a first light emitting diode assembly supported by the first surface of the heat sink structure and a second light emitting diode assembly supported by the second surface of the heat sink structure, each of the first and second light emitting diode assemblies being electrically connected to the main circuit board; a lens affixed to the housing having an inner surface and an outer surface; a wire heating element circuit board affixed to said lens; a wire heating element embedded within the inner surface of the lens, and electrically coupled to the wire heating element circuit board; an encapsulation layer disposed over the wire heating element; characterized in that the assembly further comprises a thermistor for providing a resistance, said thermistor being placed in the lens between said inner surface and said outer surface of said lens, thereby minimizing the thermal impedance between the thermistor and outer surface of the lens and maximizing the resistance from the thermistor to an inside of the lamp, said thermistor being electrically coupled to said wire heating element circuit board; and a micro-controller for determining the temperature of the outer surface of the lens based on the resistance provided by the thermistor, said wire heating element being activated in response to the temperature of the outer surface of the lens being at or below a set activation temperature above but near zero degrees Celsius so as to prevent the formation of snow or ice on said outer surface of said lens. characterized in that the assembly further comprises a thermistor for providing a resistance, said thermistor being placed in the lens between said inner surface and said outer surface of said lens, thereby minimizing the thermal impedance between the thermistor and outer surface of the lens and maximizing the resistance from the thermistor to an inside of the lamp, said thermistor being electrically coupled to said wire heating element circuit board; and a micro-controller for determining the temperature of the outer surface of the lens based on the resistance provided by the thermistor, said wire heating element being activated in response to the temperature of the outer surface of the lens being at or below a set activation temperature above but near zero degrees Celsius so as to prevent the formation of snow or ice on said outer surface of said lens.