Humidity

A humidity sensor gives out a varying voltage which is relative to how much moisture there is in the air.

Related Commands:

Print Page

Share

Schematic

PCB

Reading a humidty sensor

This program will read a humidity sensor connected to analogue input pin C.0 and report the value read in the 'b1' variable.

Code Example:
main:	readadc C.0, b1		; Read the humidity sensor value
	debug			; Display the value
	pause 1000		; Wait a while
	goto main		; Repeat
Copy Code Submit an Example

Create Module

The humidity sensor may be connected directly to the generic terminal block create module.

Bill of Materials

DescriptionCodeQty
Humidity sensor SEN008 1 Buy Now

Simulation

No Image Selected

Submit Your Own Code!

You must be logged in to submit code examples. Login now.