Calibration is the process of mapping raw sensor readings into corrected values by identifying and correcting systematic bias. Calibration is important from both off-line and on-line perspectives. Major objectives of calibration procedure include accuracy, resiliency against random errors, ability to be applied in various scenarios, and to address a variety of error models. In addition, a compact mapping function is attractive in terms of both storage and robustness. We start by introducing the non-parametric statistical approach for conducting off-line calibration, After that, we present the non-parametric statistical percentile method for establishing the confidence interval for a particular mapping function. Furthermore, we propose the first model-based on-line procedure for calibration. The calibration problem is formulated as an instance of nonlinear function minimization and solved using the standard conjugate gradient approach. A number of trade-offs between the effectiveness of calibration and noise level, latency, size of network and the complexity of phenomena are analyzed in a quantitative way. As a demonstration example, we use a system consisting of photovoltaic optical sensors.