design and construction of an automatic room light controller with bidirectional visitor counter pdf