64 yr old newby would like some help

I missed the section in my brothers on controlling soil moisture and irrigation somehow.

I have copied it from mine to his in the same locations in the code. I am getting a message that 'Tasksoil_moisture' was not declared in this scope.

I find 'Tasksoil_moisture' on only 2 places in each.

Help please?