max_samples = 10; % how many times do we check the sound sensor?
tic %start timer
for i = 1:max_samples
moisture_data(i) = readVoltage(a,'A0');
time_data(i) = toc;
end
plot(time_data, moisture_data)
readVoltage(a,'A0') is a moisture sensor this loop takes 10 samples from the sensor then graphs it i want to pause for 30 seconds put the sensor in water and run this loop again making a second line on the same set of axes as the first how do i do that