There is a function for reading data from the sensor
Code: Select all
function DHT11_GetData():word;
var DHT_Status,i,CRC,temp1,temp2,temp3,temp4:byte;
begin
result:=0;
DHT_Status:=0;
CRC:=0;
DDD0_bit:=1;
PORTD0_bit:=0;
Delay_ms(18);
PORTD0_bit:=1;
DDD0_bit:=0;
.........
For example
Code: Select all
function DHT11_GetData(port, pin: byte):word;