Optimization of a device for the fumigation process