c 文件 #include #include //the main only needs to call getDHT11(),then the temperature and huminity was geted in F16T,F16RH as float sbit bit11=P2^0; unsigned char U8T_data_H,U8T_data_L,U8RH_data_H,U8RH_data_L,U8checkdata; float F16T,F16RH; //用于最终读取的温湿度数据 // read 8 bits onice char COM(void) { char i,U8temp,U8comdata; for(i=0;i