Not sure when to use “affect” and when to use “effect” in a sentence?

Example: The boy’s allergies were affected by the wind.
Example: The noise from the neighbor’s stereo had a big effect on Billy’s mood.
Here’s a good blog post about this topic.
Not sure when to use “affect” and when to use “effect” in a sentence?

Example: The boy’s allergies were affected by the wind.
Example: The noise from the neighbor’s stereo had a big effect on Billy’s mood.
Here’s a good blog post about this topic.