For building the prototype of any of the real-time applications, the algorithms mostly are AI based AI-based. Hence, it would be better if the integrated tool is available to develop the environment and test the results.
It would be better if you can share the specific real-time application you are working with. Some times, it is way easier and cost effective, in implementing a real-time in-situ measurements using WSNs than "first-simulating then-validating" approach.
Here, you can find a project involving NetSim - MATLAB interfacing. NetSim is used for the WSN/IoT simulation while MATLAB runs the AI engine. The example includes the use of self organizing feature map neural network for optimizing IoT energy conservation.