Access control with time attendance for controlling entrance through the main door and the software for it