By mentioning XMDA300 I will guess that you are using Moteworks.
A quick look at the RelayM.nc file shows that it is a simple driver
for turning an I/O pin on and off, so it's probably the code that
you want to use in your app. If your moisture sensor is on the same
mote as the relay you probably
I'm a M.E student from Velammal Engineering College doing project work using
MDA300 MICAz motes.
I'm having a doubt about exciting a water sprinkler using the relay pins in
MDA300 when a analog values exceeds a threshold.[the analog value will be
the values from soil moisture sensor]i.e during