Skip to Main Content
Getting Started with Python for the Internet of Things
book

Getting Started with Python for the Internet of Things

by Tim Cox, Dr. Steven Lawrence Fernandes, Sai Yamanoor, Srihari Yamanoor, Prof. Diwakar Vaish
February 2019
Intermediate to advanced content levelIntermediate to advanced
732 pages
17h 10m
English
Packt Publishing
Content preview from Getting Started with Python for the Internet of Things

Making it more intelligent

Congratulations on making your first robot! But did you notice one problem? The robot we made was continuously looking for a moisture value and, as soon as it noticed that the moisture value was low, it suddenly pumped water and made sure that the humidity of the soil was always more than 20%. However, this is not required. In general, we water the garden once or twice a day. If we water it more then it might not be good for the plants.

So, let's go ahead and make it slightly more intelligent and make it water the plants only when the moisture level is low at a certain time. This time, we won't need to make any changes to the hardware; we simply need to tweak the code. 

Let's go ahead and upload the following code, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Python Programming for IoT

Practical Python Programming for IoT

Gary Smart
Learning Python Networking - Second Edition

Learning Python Networking - Second Edition

José Manuel Ortega, Dr. M. O. Faruque Sarker, Sam Washington
Learn Quantum Computing with Python and Q#

Learn Quantum Computing with Python and Q#

Cassandra Granade, Sarah Kaiser

Publisher Resources

ISBN: 9781838555795Supplemental Content