What’s the difference?
As we can see from the picture as follows, there is no chip on the aftermarket flex cable of iPad Air home button, which is in charge of the sleeping function when you close the cover. Therefore, if you found that your iPad Air won’t go to sleep when close the cover after repairing the digitizer, your repairing technician must have forgotten to put the original flex cable back for you.
BTW, you have to check the option to enable this ‘sleep’ function in the settings of your iPad Air. For iOS 11, you can find the option in Settings>>Display&Brightness>>Lock/Unlock (Automatically lock and unlock your iPad when you close and open the iPad cover.) Before you test your iPad sleep function, please make sure you have checked this option.