Designing an adaptable and low-cost system for gesture recognition using visible light