: Used once in the setup() function to initialize the clock.
The DS1302 RTC module requires five connections to interface with an Arduino board. Three pins handle data communication, while the remaining two provide power. DS1302 Pin Description Arduino Pin (Example) Power Supply (3.3V - 5V) 5V or 3.3V GND CLK Serial Clock Digital Pin 6 DAT Serial Data Digital Pin 7 RST Reset / Chip Select Digital Pin 8 virtuabotixrtc.h arduino library
You can manually download and install the library from the GitHub repository maintained by community member chrisfryer78 : : Used once in the setup() function to initialize the clock
int tempReading = analogRead(tempPin); float voltage = tempReading * (5.0 / 1023.0); float temperatureC = voltage * 100.0; float temperatureC = voltage * 100.0