Temperature Sensor TABLE OF CONTENTS Overview Pin-Assignment Code Example Arduino Code Example Raspberry Pi Information and take-back obligations Support Published: 27.08.2018 Copyright by Joy-IT...
Now restart your Raspberry Pi with the following command so that the changes you have made take effect: sudo reboot You can download the code example for Raspberry Pis here or copy and paste the following sections. Published: 27.08.2018 Copyright by Joy-IT...
Page 6
# This folder contains the file w1-slave # in which the data sent over the One-Wire bus is stored # In this function, this data is analyzed and the temperature is read out and shown Published: 27.08.2018 Copyright by Joy-IT...
Page 7
# The measured temperature is sent to the console between the individual measurements # is a pause whose length can be set with the variable "sleeptime try: while True: print '---------------------------------------' print "Temperatur:", TemperaturAuswertung(), "°C" time.sleep(sleeptime) except KeyboardInterrupt: GPIO.cleanup() Published: 27.08.2018 Copyright by Joy-IT...
Possibility of return in your area We will send you a parcel stamp with which you can return the device to us free of charge. Please contact us by e-mail at Service@joy-it.net or by phone. Information about packaging If you do not have suitable packaging material or do not wish to use your own, please contact us and we will send you suitable packaging.
Need help?
Do you have a question about the KY-001 and is the answer not in the manual?
Questions and answers