I don’t think the question was stupid, just a bit unclear. Does the sensor show up as “unavailable” in HA, and you want something to happen when it becomes available?
Screenshots and code snippets are a big help as well, so we can see what you’ve tried and the information you’re dealing with. Check out this pinned post, and try following those guidelines when asking a question. I’m sure many people would be happy to help at that point! 