To detect foreign bodies in glass bottles