The Design of a Digital-Twin for Predictive Maintenance