Introduction - If you have any usage issues, please Google them yourself
//DHT21 using the example of// MCU: AT89S52, or STC89C52RC// function: serial port to send temperature and humidity data crystal 11.0592M baud rate 9600// hardware connection: P2.0 port as a communication port to connect DHT11, DHT11 power and connect the power supply and microcontroller, the microcontroller serial port to connect a computer plus MAX232