First of all check with the device manufacturer to see if they support 7 and supply drivers for Windows 7 for your exact model number.
If they don't forget about installing Windows 7.
Support for 7 ends in Jan, 2020 and if you can get it, it is expensive.
Microsoft no longer sells 7; try amazon.com, etc..
Warning:
You do not buy a Product Key by itself, as they are normally stolen/pirated, Volume Licenses which are not for private use, or MSDN keys which are not to be sold by the original subscription holder.
Make sure that you buy the complete sealed package (DVD, license)
https://www.microsoft.com/en-us/howtotell/Shop.aspx
Read Section: Beware of Product Keys sold separately.