This document summarizes a scheduling algorithm called BUCKET that aims to maximize the utilization of solar energy in sensor networks. BUCKET is a cross-layer optimization approach that involves 4 stages: 1) predicting energy harvesting and traffic, 2) internode optimization of transport and network layers, 3) intranode optimization of MAC layers, and 4) flow control using a token-bucket algorithm. Simulations show the BUCKET algorithm improves average service rate by 12-15% over conventional methods for a sensor network monitoring structural health of bridges with 5 sensor types.