Tools: From Deadlocks to Green Streaks: Building an AI Greenhouse with Gemini in 36 Hours

Tools: From Deadlocks to Green Streaks: Building an AI Greenhouse with Gemini in 36 Hours

Source: Dev.to

Plante | Devpost ## What I Built with Google Gemini ## The Spark ## The Solution: Plante ๐ŸŒฑ ## The Role of Google Gemini ## What I Learned ## Technical Skills ## Google AI Follow ## Unexpected Lessons (The Hackathon Pivot) ## What's Next ## Google Gemini Feedback ## The Good ## The Bad ## The Ugly ## JowiAoun / Plante ## We built Plante, a plant monitor, so you can touch grass inside ## ๐ŸŒฑ Plante ## โœจ Features ## ๐Ÿš€ Quick Start Built with Google Gemini: Writing Challenge This is a submission for the Built with Google Gemini: Writing Challenge We built Plante, a plant monitor, so you can touch grass inside As university students, my teammates and I noticed a common problem: lots of people want to grow their own fruits and vegetables but simply don't have the time to monitor a garden. We wanted to bridge that gap. We set out to create a system that could teach anyone how to automatically grow their own produce using a simple, accessible Raspberry Pi kit. Built over 36 hours at the MLH sponsored uOttaHack 8 with almost a thousand registered students, Plante (French for "plant") is a prize-winning mini automated greenhouse and gamified learning platform. We hooked up temperature, humidity and soil sensors to a Raspberry Pi and an Arduino, allowing the physical greenhouse to automatically open and close its hatch using servos to regulate its environment. We also added a camera to monitor the plantโ€™s health. To make learning fun, we built a sleek, gamified frontend (which actually won "Best Design" prize!). Users earn XP, maintain "green streaks", and unlock achievements in their personal museum for keeping their plants alive. Users also can visit their friendsโ€™ farms and museums, enhancing the social aspect to growing plants! As the software lead, my main focus was integrating AI to make Plante truly intelligent. I used the Google Gemini API to power two core features: Context-Aware AI Chat: We didn't want a generic botany bot. We passed real-time sensor data from the user's specific farms directly into the prompt context. If a user asks, "Help, my Tomato Farm is critical ๐Ÿ˜ญ๐Ÿ˜ญ๐Ÿ˜ญ", Gemini knows exactly what the humidity and temperature levels are for that farm and provides targeted, actionable advice. Weekly Pulse Insights: Gemini analyzes the plant's data over the week to generate custom reports and suggestions, helping users learn long-term farming habits. This goes with our goal of continuously teaching the user about their farm. You can check out our full hardware and software demo in action right here: Feel free to register in the Plante app directly, but beware that AI features have been disabled after the hackathon ended. Here's a demo CodePen of the little farm game where you can see your farms, originally written in TypeScript from scratch ๐Ÿ˜€. Press G to express yourself! Hooking up physical hardware to a web application is NO JOKE ๐Ÿฅถ. We had to create a dedicated sensor polling service on the Raspberry Pi which our appโ€™s server talked with because our initial approach of requesting sensor data from the appโ€™s backend would end up causing deadlocks. So more moving parts means exponentially more thought to put into the architecture of a system. We also learned how to wire servos and sensors to an Arduino, route that through a Raspberry Pi, and expose the hardware states to our app via a REST API. With all the complexities in creating a fully featured software application with hardware and connecting them together, I would still highly recommend taking on a similar kind of challenge to anyone as it was a lot of fun. We took on this with almost no knowledge of hardware, you can do it even better! Nowadays it is extremely accessible to bridge knowledge gaps with multi-modal AI models like Gemini, allowing you to communicate with it without limits. If you would like to learn how to build apps with Google AI Studio, I would recommend following the "Build Apps with Google AI Studio" track. The curriculum follows a clever route to teach and make you get creative on your own. Our original grand plan included a fully automated water pump. However, deep into the hackathon, we realized our hardware kit simply couldn't draw enough power to run the pump effectively ๐Ÿ‘Ž. With the clock ticking down, we had to triage. We completely scrapped the physical pump idea and quickly pivoted to a software solution: we wired the "Water Now" trigger to test sending mobile push notifications to the user instead. It taught us a massive lesson in MVP scoping and adapting on the fly when hardware refuses to cooperate! We want to take Plante even further by designing a better mechanical box to fit larger plants, adding more advanced actuators, and expanding the software features to support community leaderboards. It would be really cool to add a Raspberry Pi AI HAT+ 2 Kit to have the farm deployable on the edge with LLM/LVM capabilities. We utilized Gemini 2.5 Flash, and its speed and balance of performance were incredible for a fast-paced hackathon. The massive 1 million token context window meant we could pass context (temperature, humidity, light, farms, user info) directly into the prompt without worrying about cutting data. Additionally, our team had little to no experience with hardware. When we were stuck, we took pictures of our hardware and sent it to Google Gemini through the web interface, in text and image. It was of such big help, so much so that our teamโ€™s hardware lead went on to create Buildo in his next hackathon, an app that turns hardware ideas into reality by generating an image with Gemini and finding the components needed to turn the idea into reality. His team went on to win MLHโ€™s best use of Gemini API, truly showing the powers of Gemini in hardware! I truly believe Gemini is untapped for hardware, help yourself and take advantage of this. Share in the comments any tracks you recommend ๐Ÿ˜. While the context window is huge, we noticed that if we didn't explicitly rein the model in with our system instructions, it occasionally had a tendency to "overengineer" its advice, jumping the gun on complex solutions rather than just answering the user's specific plant question. It required some rigorous prompt engineering and testing to keep the AI strictly within its helpful "Plante Assistant" persona without hallucinating tasks. Rate limits. The free tier limits for the Gemini API (which dropped recently to around 15 requests per minute for Flash) hit us hard during our rapid, late-night testing phases. We kept running into the dreaded 429 Too Many Requests error right when we were trying to debug the chat feature. We had to quickly pause our UI work to learn and implement exponential backoff logic to keep the app from crashing during our demo prep. This was fair nonetheless as we received our API key with just a few clicks and were able to use it right away ๐Ÿซก. ๐Ÿ† Best Designed Award โ€“ uOttaHack 8 2026 A gamified, pixel-art smart plant monitoring system with AI chat, Raspberry Pi sensor integration, and real-time farm management. Open http://localhost:3000 Templates let you quickly answer FAQs or store snippets for re-use. Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well For further actions, you may consider blocking this person and/or reporting abuse COMMAND_BLOCK: # Install dependencies npm install # Set up environment variables cp .env.example .env # Edit .env with your API keys # Start development server npm run dev Enter fullscreen mode Exit fullscreen mode COMMAND_BLOCK: # Install dependencies npm install # Set up environment variables cp .env.example .env # Edit .env with your API keys # Start development server npm run dev - Context-Aware AI Chat: We didn't want a generic botany bot. We passed real-time sensor data from the user's specific farms directly into the prompt context. If a user asks, "Help, my Tomato Farm is critical ๐Ÿ˜ญ๐Ÿ˜ญ๐Ÿ˜ญ", Gemini knows exactly what the humidity and temperature levels are for that farm and provides targeted, actionable advice. - Weekly Pulse Insights: Gemini analyzes the plant's data over the week to generate custom reports and suggestions, helping users learn long-term farming habits. This goes with our goal of continuously teaching the user about their farm. - ๐ŸŽฎ Pixel-Art UI โ€“ Retro-styled interface using PICO-8 color palette and NES.css - ๐Ÿค– AI Chat Assistant โ€“ Gemini-powered chat with voice synthesis (ElevenLabs) - ๐Ÿ“Š Live Sensor Data โ€“ Real-time temperature, humidity, and soil moisture from Raspberry Pi - ๐Ÿ“ธ Pi Camera Feed โ€“ Auto-capturing plant photos with pixel-art filters - ๐Ÿ”” Smart Notifications โ€“ In-app and SMS alerts via Twilio - ๐Ÿ“ˆ Weekly Pulse โ€“ AI-generated weekly insights about your plants - ๐Ÿ† Gamification โ€“ XP, levels, achievements, and leaderboards - ๐Ÿ” Google Auth โ€“ Secure authentication with NextAuth.js