For information about how to request access to a deceased family member's Apple account data, and possibly their equipment, click here --> How to request access to a deceased family member's Apple account - Apple Support
"While we may also be able to help remove Activation Lock from devices that use your loved one’s original Apple ID, their iPhone, iPod, and iPad will need to be restored to factory settings before they can be used with another Apple ID. Please note that devices locked with a passcode are protected by passcode encryption, and Apple can't help remove the passcode lock without erasing the device.