Smart Habitat for Native NZ Lizards
by mikeandmertle in Living > Pets
14 Views, 0 Favorites, 0 Comments
Smart Habitat for Native NZ Lizards


New Zealand is home to a unique and diverse range of native lizards, including skinks and geckos found nowhere else on Earth. These remarkable reptiles are not only ecologically important but also increasingly threatened by habitat loss, climate change, and introduced predators. As guardians of our native fauna, it's our responsibility to ensure their survival, both in the wild and in captivity.
This project aims to create a smart, self-regulating terrarium using Tuya-based home automation to replicate the natural environmental conditions that New Zealand lizards need to thrive. By integrating sensors and smart devices, we can automatically manage temperature, humidity, and lighting to mimic seasonal cycles and microclimates, just as they would experience in the wild.
This system supports:
- Optimal health and wellbeing of captive lizards
- Accurate seasonal cues for natural behaviors like breeding and hibernation
- Reduced human error in husbandry
- Educational and conservation value for keepers and researchers
By combining modern technology with best-practice ecological knowledge, this project demonstrates how smart homes can also be smart habitats - helping protect and preserve our precious native species for generations to come.
I've also attached the latest 'Best Practice Guide' for keeping NZ lizards in captivity.
Supplies







Hardware:
- Tuya Temperature and humidity sensor - link
- Tuya Light sensor - link
- Tuya Smart plugs - link
- Tuya Smart Watering System - link
- Small Fans - link
- Halogen basking lamp - link
- Lamp Socket - link
- Reptile Lamp - link
- DC Power supply for fans
- Misting system or humidifier - link
- Enclosure with mesh top and ventilation - link
Software:
- Tuya Smart or Smart Life app
Design the Terrarium Layout




A well-designed terrarium for native New Zealand lizards should replicate their natural habitat as closely as possible, offering a range of microclimates and environmental enrichment. Here's a breakdown of what the layout should include:
Size & Structure
- Minimum dimensions: 50 cm (W) × 50 cm (D) × 100 cm (H)
- Vertical space is important for climbing species like geckos
- Use a mesh or ventilated top for airflow and to mount lighting
Environmental Zones
- Basking Area
- Located at the top or upper side of the enclosure
- Includes a halogen basking lamp for localised heat
- Should reach 25–28°C during the day
- Place a flat rock or branch under the lamp for basking
- Cool Retreat
- The opposite side or a lower section of the terrarium
- Dense foliage or a hide box to provide shade and security
- It should stay around 15–20°C
- Moist Microclimate
- A small area with damp sphagnum moss or moist substrate
- Helps with shedding and hydration
- Keep the humidity here around 70–80%
Furnishings & Substrate
- Live native plants (e.g., ferns, mosses) for humidity and cover
- Branches and rocks for climbing and basking
- Leaf litter or bark chips as substrate
- Water dish: Shallow and easy to clean
Disease Prevention
To help prevent any transmissible diseases, it's recommended to sterilise items such as driftwood and rocks. I did this by placing the items in a large pot and boiling them on a gas burner for a few minutes. If you are reusing a terrarium from a previous reptile, it's a good idea to thoroughly wash and disinfect it first. Be sure to rinse of any soaps as a final step.
Set Up Smart Devices




Each of the devices will be connected into a Tuya Smart plug device, this will allow you to control when they are on and off.
Open the Tuya Smart app, and for each smart device select the '+' button and select 'Add Device' and follow the prompts to complete the device setup. You should give each device a name that reflects what it's function will be, eg: 'Basking Lamp", "UVB Light" etc...
Finally, create a 'Room' for all the devices in the given enclosure and give it a relevant name. I named mine 'Lizard Land'. This is important if you have more than one enclosure.
UVB Light
This is the primary light for the habitat and is normally a tube that runs the majority of the Terrarium.
Basking lamp
This lamp is a more focused bulb that will deliver more heat into a concentrated area where the lizard can bask. This should be at the designated 'hot' zone, typically above a rock or piece of wood.
Ventilation Fans
For my fans I used a couple of small 12v computer fans connected to an old laptop power supply. The fans should be installed in such a way to assist the natural airflow. If the habbitate gets to hot or humid then the fans can help return conditions to normal by transferring fresh air into the Terrarium.
Humidifier (Optional)
I haven't yet implemented an automated spray system for water into the Terrarium, and just use a small spray bottle. But I will eventually have a small water pump to spray the wet end automatically. The watering systems I've found so far cost a little more and I'm looking for a more affordable option.
Install Sensors

Using the same process, add the sensors into the Tuya Smart app and add them into the room you created earlier.
Temperature/Humidity Sensor
You should have a sensor at each end of the Terrarium so you can monitor each zone. The sensors should be installed at mid-height on the sides of the enclosure
Light Sensor
The luminosity sensor should be installed away from the enclosure, where it can detect the natural day/night cycles. By placing it on a windowsill or outside it be able to provide data on any seasonal differences.
Configure Tuya Automations








Use the Tuya Smart app to create the following automation by going into the 'Scene' menu and selecting the 'Automation' option.
Start by using the 'Create Scene' button and then 'When device status changes' and select the temp and humidity sensor
I used the following logic for my set up
🌡️ Temperature Control
- IF temperature > 28°C → THEN turn on fan
- IF temperature < 15°C → THEN turn on basking lamp
- IF temperature > 30°C → THEN send alert (danger zone)
- IF temperature < 5°C → THEN send alert (danger zone)
💧 Humidity Control
- IF humidity > 80% → THEN turn on fans
- IF humidity < 60% → THEN turn on humidifier/mister (I'm still developing this)
☀️ Light Cycle Automation
- Use the light sensor to match natural photoperiod:
- IF ambient light > 1000 Lux (day time) → THEN turn on UVB light
- IF ambient light < 1000 Lux (night time) → THEN turn off UVB light
- Alternatively, use sunrise/sunset schedules based on your location to simulate seasonal changes.
Set Up Safety Alerts in the Tuya App
To ensure your lizards are always safe—even when you're not actively monitoring the terrarium—you can configure the Tuya Smart app to send real-time alerts when environmental conditions fall outside safe ranges.
Why This Matters
Native NZ lizards are sensitive to temperature and humidity extremes. Prolonged exposure to:
- Temperatures above 30°C can cause heat stress or death
- Temperatures below 5°C can lead to hypothermia
- Humidity below 50% can cause shedding issues
- Humidity above 90% can lead to fungal infections
How to Set Up Alerts
- Open the Tuya Smart app
- Navigate to your temperature/humidity sensor device
- Tap the “…” or settings icon in the top right
- Select “Alarm Settings” or “Notification Settings”
- Enable “Temperature Alert” and set:
- High threshold: 28–30°C
- Low threshold: 10°C (or 5°C for cold-tolerant species)
- Enable “Humidity Alert” and set:
- High threshold: 85–90%
- Low threshold: 55–60%
- Choose how you want to be notified:
- Push notification
- Email (if supported)
- Trigger automation (e.g., turn on fan or humidifier)
Monitor and Maintain

- Use the Tuya app to monitor trends and receive alerts.
- Clean sensors and devices monthly.
- Replace UVB bulbs every 6–12 months, depending on brand.
Tips for Success
- Provide multiple microclimates so lizards can self-regulate.
- Use naturalistic furnishings like bark, rocks, and live plants.
- Avoid over-humidifying—ventilation is key to preventing fungal infections.
- Keep a log of environmental data and lizard behaviour for optimisation.