IoT and Machine Learning Based Affordable Smart Farming