Text this: An approach to energy conservation in lighting systems using luminaire-based sensor for automatic dimming