Loopy Belief Propagation as a Basis for Communication in Sensor Networks