# Change XYZ to the UID of your Moisture Bricklet

setup:
	# Get threshold callbacks with a debounce time of 1 second (1000ms)
	publish '{"debounce": 1000}' to tinkerforge/request/moisture_bricklet/XYZ/set_debounce_period
	
	# Handle incoming moisture value reached callbacks
	subscribe to tinkerforge/callback/moisture_bricklet/XYZ/moisture_reached
	publish '{"register": true}' to tinkerforge/register/moisture_bricklet/XYZ/moisture_reached # Register moisture_reached callback
	
	# Configure threshold for moisture value "greater than 200"
	publish '{"option": "greater", "min": 200, "max": 0}' to tinkerforge/request/moisture_bricklet/XYZ/set_moisture_callback_threshold
