Well I'm not sure what every component in the entire circuit does. The only reason why I assume you would ask such a thing is because this is a school assignment or something of the sort. However, I can tell you what I do know
Inductor: When the metal gets close to the inductor, it causes...