iMac 2011 not recognized as display for MacBook Air M2
I own a iMac (27-inch, Mid 2011 version, macOS High Sierra) that I use for photography. Since I can no longer update my iMac, I bough a MacBook Air (M2, 2023 Version) to run the program, but am looking to use the iMac as a monitor.
I purchased a lightningbolt 1/2 to HDMI cable, then a HDMI to usb-c cable to connect, but the MacBook/iMac is not recognizing the other. I have tried airplay, but the Air cannot play to the iMac.
Of note, we are both logged on to the same WiFi and iCloud account.
Would love help with this, thank you