I am a beginner and I don’t have any knowledge about writing codes in Arduino. I want to make a project using Arduino in which I have to switch ON/OFF a 12V Relay using Infrared Temperature sensor and MOSFET. The flowchart for my project is as below.
I would be thankful if someone can help me with the circuit diagram (with connections) and Arduino code to run it?