Check if using rain sensor for log viewer

Also fix some undefined offset error's