Fixed bug when sensor has no values
Added weather model