Using SCT-013 Current Sensor

Hi guys, I make a very simple project. If machine run I'll display ON, if machine stop I'll display OFF. I saw emonlib library to use it but I don't want to use it. I just want to show ON/OFF. I prepared very simple circuit. If you check it and help me I really appreciate.

See you later,
Coskun

what is "emonlib library" You failed to provide any links/background for us.. on your project.

You are right! the library is here GitHub - openenergymonitor/EmonLib: Electricity monitoring library - install in Arduino IDE's libraries folder then restart the IDE