addPlugin( "Sensor" ); addType( "power" ); // Example sensor that measure electrical power addTypeInstance( "watts" ); // code that get the power in watts from sensor addTypeInstance( "amperes" ); // code that get the power in amperes from sensor