Smart irrigation using renewable energy