One major goal of the vehicular ad hoc network (VANET ) is to improve driving safety. However, the VANET may not guarantee timely detection of dangerous road conditions or maintain communication connectivity when the network density is low (e.g., in rural highways), which may pose as a big threat to driving safety. Towards addressing the problem, we propose to integrate the VA NET with the inexpensive wireless sensor network (WSN). That is, sensor nodes are deployed along the roadside to sense road conditions, and to buffer and deliver information about dangerous conditions to vehicles regardless of the density or connectivity of the VANET. Along with the concept of VANET-WSN integration, new challenges arise and should be addressed. In this paper, we investigate these challenges and propose schemes for effective and efficient vehicle-sensor and sensor-sensor interactions. Prototype of the designed system has been implemented and tested in the field. Extensive simulations have also been conducted to evaluate the designed schemes. The results demonstrate various design tradeoffs, and indicate that satisfactory safety and energy efficiency can be achieved simultaneously when system parameters are appropriately chosen.