Skip to content

Commit

Permalink
[DHT] change to input with pullup
Browse files Browse the repository at this point in the history
  • Loading branch information
uzi18 committed Aug 30, 2019
1 parent 879c75d commit 0d6d136
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/_P005_DHT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ bool P005_do_plugin_read(struct EventStruct *event) {
case P005_SI7021: delayMicroseconds(500); break;
}

digitalWrite(Plugin_005_DHT_Pin, HIGH);
pinMode(Plugin_005_DHT_Pin, INPUT);
pinMode(Plugin_005_DHT_Pin, INPUT_PULLUP);

switch (Par3) {
case P005_DHT11:
Expand Down

0 comments on commit 0d6d136

Please sign in to comment.