Does fan have logic gates?

No. Logic gates are used for digital design. fan is an electrical appliance. They do not have any similarities.