A wireless sensor network architecture for structural health monitoring