Source Code for Automatic plant irrigation Arduino

Preview:

DESCRIPTION

Trust comes here...

Citation preview

SOFTWARE DESCRIPTION

#include sbit SW_1 = P2^6; //connecting switch 1 to the port 2 ,pin 6. sbit SW_2 = P2^7; // connecting switch 1 to the port 2 ,pin 7. sbit MTR = P1^0; void main() { int x; while(1) { if(SW_1==0 & SW_2==0) { MTR=1; for(x=0;x