and need loop to stop there till the condition becomes "false"
Until what condition becomes false?
whole code is unnecessary
Wrong. You really need to think in terms of "do something if the condition is true", rather than in terms of don't "do anything until the condition becomes false".
PaulS:
Until what condition becomes false?
Wrong. You really need to think in terms of "do something if the condition is true", rather than in terms of don't "do anything until the condition becomes false".
The condition is humReal <60 it satisfied the loop executes, I can add delay(value) to stop the loop execution . But I need to stop the further execution till the condition fails
@sravankreddy, please modify your post and use the code button </> so your code looks like this and is easy to copy to a text editor. See How to use the Forum
You should not be thinking of "How to delay loop". You should make a special effort throughout your code to ensure that loop repeats as often as possible - hundreds or thousands of times per second.
You can cause a function not to act if a condition is not met. Look at the code in Planning and Implementing a Program. In that some of the functions do nothing if the time is not ripe. You can use the same technique with other conditional tests.
sravankreddy:
The condition is humReal <60 it satisfied the loop executes, I can add delay(value) to stop the loop execution . But I need to stop the further execution till the condition fails
Use a while loop. In the loop read the humidity again as well as setting your pin, there is no need for any delay.
... with a general pejorative meaning of a "peculiar person, especially one who is perceived to be overly intellectual, unfashionable, or socially awkward"
So you are asking for "socially awkward" people to help you? Maybe you are trying to be funny, but I suggest you drop the term.