Barrel and environment monitoring