Applying domain specific modeling for environmental sensing using wireless sensor network