Teaching and reasearch project about smart home based on data logging