Below is the circuit diagram of the hardware which shows the connections between Arduino, Bluetooth and motors. It also shows a motor driver L298N which is responsible for movement of the motors in either direction.The data is used also the DHT11 sensor. The RxD pin of the Arduino is connected to the TxD pin of Bluetooth and vice versa. Supply of 5V is provided to the motors.