Ping if PC is online

I would pay around with Smart presence more. It should indeed be exactly what you need, but it does try to reach a specific port that is maybe now blocked by a firewall? Check the settings of the app and/or try to ask in the thread for the app.
You could also look at [APP] Desktop Device to see if that suits your needs, but it is meant for other things I believe, so it is pretty overweight if you don’t need what it was built for.