Skip to content

Commit ad062c7

Browse files
committed
update variable names to be better
1 parent 93c4218 commit ad062c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arduino.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//Define and include Libraries
22
#define USE_ARDUINO_INTERRUPTS true
3-
#define dht_apin A0 // Analog Pin Temperature sensor is connected to
3+
#define dht_analog_pin A0 // Analog Pin Temperature sensor is connected to
44
#include "dht.h" // Temperature sensor library, this needs to be downloaded
55
#include <PulseSensorPlayground.h> // heartbeat sensor library, in the official repos
66

@@ -36,7 +36,7 @@ void loop()
3636
int MyBPM = heartbeat.getBeatsPerMinute(); // get the BPM
3737
heartbeat.pause();
3838
delay(100);
39-
DHT.read11(dht_apin); // Initialize reading of temperature
39+
DHT.read11(dht_analog_pin); // Initialize reading of temperature
4040
float MyTemp = DHT.temperature; // Set temperature value.
4141
heartbeat.resume();
4242
time_in_millis = millis();

0 commit comments

Comments
 (0)