A wearable headlamp comprising: a housing (100, 200); at least one fastener configured for securing the headlamp to a user's head; and a light-emitting diode operatively connected to the housing (100, 200), characterized in that wearable headlamp further comprises a photosensor operatively connected to the housing (100, 200), the photosensor being configured for detecting ambient light and for generating an electrical signal corresponding to the detected ambient light; the light-emitting diode is configured to emit visible light having a luminous flux that varies based at least in part on the electrical signal generated by the photosensor such that the luminous flux of the light emitted by the light-emitting diode decreases in response to an increase in the detected ambient light and increases in response to a decrease in the detected ambient light; the housing (100, 200) comprises a first housing having at least one outwardly extending retention member; the light-emitting diode is secured to a second housing; and a first portion of the second housing is pivotably connected to the first housing and a second portion of the second housing engages at least a portion of the first housing's retention member, the engagement of retention member with the second housing configured to hold the second housing in a stable position relative to the first housing absent deliberate force applied by a user and, upon application of deliberate force by a user, permit the second housing to pivot relative to the first housing in order to adjust the direction of visible light emitted from the light-emitting diode relative to the first housing. a housing (100, 200); at least one fastener configured for securing the headlamp to a user's head; and a light-emitting diode operatively connected to the housing (100, 200), characterized in that wearable headlamp further comprises a photosensor operatively connected to the housing (100, 200), the photosensor being configured for detecting ambient light and for generating an electrical signal corresponding to the detected ambient light; the light-emitting diode is configured to emit visible light having a luminous flux that varies based at least in part on the electrical signal generated by the photosensor such that the luminous flux of the light emitted by the light-emitting diode decreases in response to an increase in the detected ambient light and increases in response to a decrease in the detected ambient light; the housing (100, 200) comprises a first housing having at least one outwardly extending retention member; the light-emitting diode is secured to a second housing; and a first portion of the second housing is pivotably connected to the first housing and a second portion of the second housing engages at least a portion of the first housing's retention member, the engagement of retention member with the second housing configured to hold the second housing in a stable position relative to the first housing absent deliberate force applied by a user and, upon application of deliberate force by a user, permit the second housing to pivot relative to the first housing in order to adjust the direction of visible light emitted from the light-emitting diode relative to the first housing.