Remove the old. Black hooked to bottom of switch.

Wiring Diagrams For A Ceiling Fan And Light Kit Do It
Wiring a fan with two switches. Turn the power back on and test the fan. Connect two of the black. Connect the three white wires from the ceiling fan and receiver together. Tuck the wires back into the box. Youll end up with something like this. Wiring a ceiling fan with two switches assemble the ceiling fan.
From the switches 3 wire cable runs to the ceiling outlet box. Within the fans mechanism there are four wires red hot black hot white neutral and barecopper ground. Connect the lighting wire typically blue to the black fan wire and the black ceiling wire. 2 wire cable power out to the second ceiling outlet box 3 wire cable switch legs from first ceiling outlet down to a 2 gang box for the first set of switches for ceiling fan light control. This setup allows you to control the light and fan separately. Cap it off using a wire nut and secure with electrical tape.
White hooked to white on bottom and to top of switch. Now when one switch is on the remote will control the light. Alternatively you could wire it like this. Connect the two white wires in the switch box together with a wire nut. Connect black wires together. The source is at the switches and the input of each is spliced to the black source wire with a wire nut.
Both of the hot wires connect to a switch. The top has a set of wires coming into the switch box on the top and bottom. Connect white wires together. Connect the red wire from the ceiling to the black wire in the fan. Fan speed would need to be controlled by a pull chain. Prior to removing the cap or the old ceiling fan you need to assemble the new one.
Connect the black wire from the ceiling to the black wire from the receiver. The other switch will turn the fan on and off. Red hooked to black on bottom. Connect the three grounding wires green greenyellow stripe or bare copper coming from the ceiling fan rated electrical box the downrod attached to your fan and the ceiling bracket. Connect the greencopper wires together. Attach the red and black wires from the fan light unit to the top terminal screws on the switches.
The top switch controls the fan and the bottom switch controls the lights. Wiring a ceiling fan is not hard but it is dangerous. Cap off the black and white wire from the output side of the remote receiver module. If you are not careful you can electrocute. Ceiling fan wiring two switches this ceiling fan wiring configuration is quite common. 3 wire cable from 2 nd ceiling outlet down to the second 2 gang box for fan light control.
This way the remote module will control the fan when the switch is in the on position and the other switch will control the light. This wiring diagram illustrates the connections for a ceiling fan and light with two switches a speed controller for the fan and a dimmer for the lights. You need to cap off one of them because in a remote control fan you only need one hot wire.