A unified bottom up multiscale strategy to model gas sensors based on conductive polymers