# Change XYZ to the UID of your Analog In Bricklet 3.0

setup:
	# Handle incoming voltage callbacks
	subscribe to tinkerforge/callback/analog_in_v3_bricklet/XYZ/voltage
	publish '{"register": true}' to tinkerforge/register/analog_in_v3_bricklet/XYZ/voltage # Register voltage callback
	
	# Configure threshold for voltage "smaller than 5 V"
	# with a debounce period of 1s (1000ms)
	publish '{"period": 1000, "value_has_to_change": false, "option": "smaller", "min": 5000, "max": 0}' to tinkerforge/request/analog_in_v3_bricklet/XYZ/set_voltage_callback_configuration  
