This document describes a bi-directional visitor counter system that uses infrared sensors to detect people entering or exiting a room. It counts the number of visitors on a 7-segment display. When the count reaches certain thresholds, it controls appliances in the room using relays. The system works automatically to count visitors and control appliances without human intervention based on the visitor count. It has advantages like saving electricity by turning appliances off when empty, but is limited to counting one person at a time and a maximum of 9 visitors displayed on the single-digit 7-segment display.