It has been established that in the study of a solid surface by atomic force microscopy, the hydrophobic interaction is more advantageous due to a decrease in the interaction forces between the probe and the liquid adsorbed on the surface under study. Despite the fact that silicon is a hydrophobic material, it has been shown that the material acquires hydrophilic properties in air, as a result of which the use of carbon-modified probes has been proposed. An approach to experimental statistical modeling is proposed, based on the experiment planning method, which shows that with a scanning speed of 12 μm / s, a scanning step of up to 82 nm and a delay time before scanning of 6 ms, the interaction force between the probe and the adsorbed liquid reaches minimum values. As a result of the research, it was found that with a decrease in the scanning speed, a scanning step and an increase in the delay time of the probe before measurement, the interaction between the probe and the liquid membrane is hydrophobic. It is shown that by changing the initial parameters, it is possible to control the hydrophobic interaction between the probe and the liquid. It has been established that increased air humidity leads to hydrophilic interaction. This is due to the increase in the thickness of the adsorbed liquid layer on the surface under study.