The black wire that connects to the switch is the hot wire.
The white wire serves as a neutral and completes the circuit.
The ground wire is copper or green wire, and it protects the fan from electrical surges.
There should be two switches on the wall if there is a blue and black cable coming from the domestic circuit.
The red cable that comes from the ceiling is connected to the wall switch.
The fan is connected to the black wire.
If the fan comes with a lamp, the blue wire is for it.
White wire is a neutral conductor.
The ground is represented by the green cable.
Red wire, which serves as a conductor for powering the light kit, is sometimes included.